%{
char tr_string[100];
int i = 0;
%}
%%
[\n\t ]
-?[1-9][0-9]* 	{tr_string[i++] = 'n';}
\{				{tr_string[i++] = '{';}
\}				{tr_string[i++] = '}';}
\(				{tr_string[i++] = '(';}
\)				{tr_string[i++] = ')';}
=				{tr_string[i++] = '=';}	
\+				{tr_string[i++] = '+';}
\*				{tr_string[i++] = '*';}
loop			{tr_string[i++] = 'l';}
print			{tr_string[i++] = 'p';}
(a|b)+			{tr_string[i++] = 'i';}
.				{;}
%%
char* get_sentence(char* filename){
	yyin = fopen(filename, "r");
	yylex();
	fclose(yyin);
	tr_string[i] = '\0';
	return tr_string;
}